<?php

header('Content-type: application/json');
$sbjs = $viewModel->get("sbjList");
if ($sbjs == NULL) {
    $sbjs = array();
} else {
    foreach ($sbjs as $sbj) {
        $sbj->subject_name = $sbj->subject_name;
    }
}
echo $a = json_encode($sbjs);
